#navigation()
<div class="fly-panel fly-column">
    <div class="layui-container">
        <ul class="layui-clear">
            <li class="layui-hide-xs #(cid == '' ? 'layui-this' : '')"><a href="/">首页</a></li>
            #for(category : categories )
            <li class="#(cid == category.id ? 'layui-this' : '')"><a href="/post/category/#(category.id)" >#(category.name)</a></li>
            #end
            <!--
            <li><a href="/post/category/aaa">分享<span class="layui-badge-dot"></span></a></li>
            -->
            <li class="layui-hide-xs layui-hide-sm layui-show-md-inline-block"><span class="fly-mid"></span></li>

            <!-- 用户登入后显示 -->
            <li class="layui-hide-xs layui-hide-sm layui-show-md-inline-block"><a href="/user/post">我发表的帖子</a></li>
            <li class="layui-hide-xs layui-hide-sm layui-show-md-inline-block"><a href="/user/collection">我收藏的帖子</a></li>
        </ul>

        <div class="fly-column-right layui-hide-xs">
            <span class="fly-search"><i class="layui-icon"></i></span>
            <a href="/post/add" class="layui-btn">发表新帖</a>
        </div>
        <div class="layui-hide-sm layui-show-xs-block" style="margin-top: -10px; padding-bottom: 10px; text-align: center;">
            <a href="/post/add" class="layui-btn">发表新帖</a>
        </div>
    </div>
</div>
#end